package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.InsuranceInfoDO;
import com.mhc.suzuki.dal.query.InsuranceInfoQuery;

import java.util.List;


/**
 * Manager for InsuranceInfo.
 */
public interface InsuranceInfoManager {
    /**
     * query count by query condition.
     */
    int countByQuery(InsuranceInfoQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(InsuranceInfoQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(InsuranceInfoDO record);

    /**
     * insert selective.
     */
    long insertSelective(InsuranceInfoDO record);

    /**
     * select by query condition.
     */
    List<InsuranceInfoDO> selectByQuery(InsuranceInfoQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<InsuranceInfoDO> selectByQueryWithPage(InsuranceInfoQuery query);

    /**
     * select by primary key.
     */
    InsuranceInfoDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( InsuranceInfoDO record,  InsuranceInfoQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(InsuranceInfoDO record, InsuranceInfoQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(InsuranceInfoDO record);
}